home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / ELECTRON / DATA / 3088.ZIP / INSTALL.BAT < prev    next >
DOS Batch File  |  1990-02-09  |  4KB  |  94 lines

  1.  
  2. echo off
  3. cls
  4. cd\
  5. if exist c:\command.com goto cdisk
  6. echo ┌─────────────────────────────────────────────────────────────┐
  7. echo │ This procedure will install the PHILIPS DATA DISK           │
  8. echo │ onto your hard disk. If you don't have a hard disk, you     │
  9. echo │ can use this DATA DISK in a diskette-drive.                 │
  10. echo │                                                             │
  11. echo │ To proceed, press any key...                                │
  12. echo └─────────────────────────────────────────────────────────────┘
  13. pause
  14. goto theend2
  15.  
  16. :cdisk
  17. set comspec = c:\command.com
  18. echo ┌─────────────────────────────────────────────────────────────┐
  19. echo │                                                             │
  20. echo │ installation PHILIPS DATA DISK started...                   │
  21. echo │                                                             │
  22. echo └─────────────────────────────────────────────────────────────┘
  23.  
  24. :inst1
  25. if exist c:\PC\O-T-HA\*.* goto existdir
  26. echo Making directory C:\PC
  27. md c:\PC
  28. echo Making directory C:\PC\O-T-HA
  29. md c:\PC\O-T-HA
  30.  
  31. :inst2
  32. if exist c:\pc.bat goto existpcbat
  33.  
  34. :inst3
  35. cd c:\PC\O-T-HA
  36. echo Copying files to C:\PC\O-T-HA
  37. copy *.exe     c:\PC\O-T-HA  /v
  38. copy images.*  c:\PC\O-T-HA  /v
  39. copy *.pcf     c:\PC\O-T-HA /v
  40. copy p*.bat    c:\  /v
  41. echo ┌─────────────────────────────────────────────────────────────┐
  42. echo │                                                             │
  43. echo │ installation completed.                                     │
  44. echo │ press PC OTHA to start                                      │
  45. echo │                                                             │
  46. echo └─────────────────────────────────────────────────────────────┘
  47. if exist c:\pc.exe goto existpcexe
  48. goto theend
  49.  
  50. :existdir
  51. echo ┌─────────────────────────────────────────────────────────────┐
  52. echo │ Warning:                                                    │
  53. echo │ Directory O-T-HA already exists, press                      │
  54. echo │                                                             │
  55. echo │          any key to continue the installation               │
  56. echo │                                                             │
  57. echo │          CTRL-C to abort the installation                   │
  58. echo └─────────────────────────────────────────────────────────────┘
  59. pause
  60. goto inst2
  61.  
  62. :existpcbat
  63. echo ┌─────────────────────────────────────────────────────────────┐
  64. echo │ Warning:                                                    │
  65. echo │ File pc.bat already exists on your harddisk, press          │
  66. echo │                                                             │
  67. echo │          any key to replace this file and continue          │
  68. echo │                                                             │
  69. echo │          CTRL-C to abort the installation                   │
  70. echo └─────────────────────────────────────────────────────────────┘
  71. pause
  72. goto inst3
  73.  
  74.  
  75. :existpcexe
  76. echo ┌─────────────────────────────────────────────────────────────┐
  77. echo │ Warning:                                                    │
  78. echo │ File pc.exe exists in your root directory. Therefore        │
  79. echo │ it is not possible to use PHILIPS product data on           │
  80. echo │ your harddisk by pressing PC OTHA.                          │
  81. echo │ Please rename, move or delete pc.exe in the root directory. │
  82. echo └─────────────────────────────────────────────────────────────┘
  83. c:
  84. cd\
  85. goto theend2
  86.  
  87.  
  88. :theend
  89. if exist c:\pc.exe goto existpcexe
  90. c:
  91. cd\
  92. :theend2
  93. echo on
  94.